<template>
  <div class="home">
    <img alt="Vue logo" src="../assets/logo.png">
    <HelloWorld v-bind:msg="message" />
  </div>
</template>

<script>
// @ is an alias to /src
import HelloWorld from '@/components/HelloWorld.vue'

export default {
  name: 'HomeView',
  components: {
    HelloWorld
  },
  created: function(){
    this.get1()
  },
  methods: {
    get1: function(){
      this.$axios.get("http://localhost:8001").then(response => response.json()).then(data => console.log(data))
    }
  },
  data(){
    return {
      message: "Welco132me to Your Vue.js App"
    }
  }
}
</script>
